﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page import="com.util.*" %>
<%@ page trimDirectiveWhitespaces="true" %>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${title}</title>
<link href="css/adminPPLive.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/comm.js"></script>
<script language="javascript" src="js/tablecell.js"></script>
<script type="text/javascript" src="js/jquery.js" language="javascript"></script>
<script type="text/javascript" src="js/jquery.alerts.js" language="javascript"></script>
</head>
<body>

<%
String curFile = "";
int s_roleid = 0;
String[] rolelist = {"1","2"};
%>

${pageIdx}

<div class="adminRight">
    <div class="adminBorderTop">
        <div class="adminBorderTopLeft"></div>
        <div class="adminBorderTopTitle">
            <div class="adminBorderTopTitleLeft"></div>
            <div class="adminBorderTopTitleMiddle">${title}维护</div>
            <div class="adminBorderTopTitleRight"></div>
        </div>
        <div class="adminBorderTopRight"></div>
    </div>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F7F8F9">
    <tr>
        <td class="adminBorderMiddleLeft"></td>
        <td>
        <div class="admTab">
        <ul>
            <li>
            <a href="<%=curFile+"?s_roleid=0"%><%=SuperPage.getQueryAnd(request,"s_roleid")%>" <%if(s_roleid==0)out.print("class='admTabCut'");%>>全部</a>
            </li>
            <%for(int i=0;i<rolelist.length;i++){%>
            <li>
            <a href="<%=curFile+"?s_roleid="+i%><%=SuperPage.getQueryAnd(request,"s_roleid")%>" <%if(i==0)out.print("class='admTabCut'");%>><%=rolelist[i]%></a>
            </li>
            <%}%>
        </ul>
        </div>
        <!--分页开始-->
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="60%" colspan="2" align="left" bgcolor="#e7f0f9">
                <div class="admPage">
                <s:component  
                    templateDir="template"
                    theme="pptv"
                    template="pageNavigation.ftl">
                    <s:param name="curIdx" value="pageIdx" />
                    <s:param name="pageCount" value="pageSize" />
                    <s:param name="recordCount" value="recordCount" />
                    <s:param name="action" value="'user'" />
                    <s:param name="idxParamName" value="'pageIdx'" />
                </s:component>
                
                </div>
            </td>
            <form name="form_s" action="<%=curFile%><%=SuperPage.getQueryQ(request,"")%>" method="post" class="formline">
            <td width="30%" align="right" bgcolor="#e7f0f9">
                <div>用户名：</div>
                <input class="admTextFirst" type="text" name="s_queryname" value="<%= "" %>">
                <input name="Submit2" type="submit" value="" style="background-image:url(images/adminSearchBtn.png);width: 59;height: 22;border:0px;cursor:pointer;">
            </td>
            <td width="30%" align="right" bgcolor="#e7f0f9">
                <div class="admHouseBtn">
                    <li>
                        <a href="<%=""%><%=SuperPage.getQueryQ(request,"act,id")%>">增加</a>
                    </li>
                </div>
            </td>
            </form>
        </tr>
        </table>
        <!--分页结束-->

        <!-- 中间区域 -->
        <table width="80%" border="0" align="center" bgcolor="#cccccc">
            <tr bgcolor="#e1e1e1" >
               <td colspan="4" >
                   <div class="mytitle">当前用户：<s:property value="#session.user"/></div>
               </td>
            </tr>
        <tr class="pt9" height="30">
            <td width="20%"><b>ID</b></td>
            <td width="20%"><b>用户名</b></td>
            <td width="20%"><b>用户角色</b></td>
            <td width="60%"><b>操作</b></td>
        </tr>
        <s:iterator value="Users" status="index">
            <s:if test="#index.odd == true">
            <tr style="background-color:#dddddd" class="pt9" height="24" >
            </s:if>
            <s:else>
            <tr class="pt9" height="24" >
            </s:else>
            <td><s:property value="id"/></td>
            <td><s:property value="userName"/></td>
            <td><s:property value="userName"/></td>
            <td>
                <a href='userMod?id=<s:property value="id"/>'>修改</a>
                <a href='userModdo?id=<s:property value="id"/>'>删除</a>
            </td>
            </tr>
        </s:iterator>
        </table>

        <!--分页开始-->
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr valign="middle">
            <td width="100%" align="left" bgcolor="#e7f0f9">
                <div class="admPage">
                <s:component  
				    templateDir="template"
				    theme="pptv"
				    template="pageNavigation.ftl">
				    <s:param name="curIdx" value="pageIdx" />
				    <s:param name="pageCount" value="pageSize" />
				    <s:param name="recordCount" value="recordCount" />
				    <s:param name="action" value="'user'" />
				    <s:param name="idxParamName" value="'pageIdx'" />
				</s:component>
                </div>
            </td>
            </tr>
        </table>
        </td>
        <td class="adminBorderMiddleRight"></td>
    </tr>
    </table>
    <div class="adminBorderBottom">
        <div class="adminBorderBottomLeft"></div>
        <div class="adminBorderBottomRight"></div>
    </div>
</div>




</body>
</html>